home *** CD-ROM | disk | FTP | other *** search
- Path: nordruth.rchland.ibm.com!seurer
- From: seurer@nordruth.rchland.ibm.com (Bill Seurer)
- Newsgroups: comp.lang.modula2
- Subject: Re: Funny problem
- Date: 19 Jan 1996 16:56:06 GMT
- Organization: IBM Rochester MN
- Distribution: world
- Message-ID: <4doif6$qmo@locutus.rchland.ibm.com>
- References: <4diqjd$b19@macondo.dmu.ac.uk>
- Reply-To: BillSeurer@vnet.ibm.com
- NNTP-Posting-Host: nordruth.rchland.ibm.com
-
- In article <4diqjd$b19@macondo.dmu.ac.uk>, c2bs@dmu.ac.uk (Bimal Shah) writes:
- |> Hello,
- |>
- |> The following is happening in one of the modules
- |> i have wrote :
- |>
- |> IF condition THEN
- |> WriteString('blah, blah, blah');
- |> CALLING PROCEDURE HERE
- |> WriteString('blah, blah, blah');
- |> ELSE
- |> CODE HERE;
- |> END;
- |>
- |> Now the above program (its in an implementation module)
- |> compiles and i have no problem linking it to the client
- |> program and the client program calls the above OK.
- |>
- |> Now (here's the funny bit), if i remove both the above
- |> WriteString procedures, (and re-compile, re-link), then
- |> it crashes and doesn't seem to call the procedure (almost
- |> like it's skipping it).
- |>
- |> Does ANYONE have any idea what's wrong ?
- |>
- |> Is there a MAJOR bug is Modula-2 ? I am using GPM September '95.
-
- I have no idea what in particular might be wrong but whenever you add or
- remove code you change the way it and it's data may lie in memory. You
- could very well have some uninitialized data that gets a valid value when
- the Write's are there but gets a "bad" value when they are not. I see
- this quite a lot in both my own code and in code I help others to debug.
-
- - Bill Seurer ID Tools and Compiler Development IBM Rochester, MN
- Business: BillSeurer@vnet.ibm.com Home: BillSeurer@aol.com
-